package checkers;

import java.awt.Image;
import java.awt.Point;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JLabel;

import chesskers.GamePiece;
import chesskers.ImagePanel;

public class KingCheckPiece extends CheckPiece{
	
	public KingCheckPiece(boolean black, int x_, int y_) {
		super(black, x_, y_);
		
		movePossibilities = new int[][][]{{{1, 1}}, {{-1, 1}}, {{1, -1}}, {{-1, -1}}};
		attackPossibilities = new int[][][]{{{2, 2}}, {{-2, 2}}, {{2, -2}}, {{-2, -2}}};		
	}
	
	public String getFilePath(){
		String filePath = "img/checkpieces/";
		
		if (isBlack){
			filePath += "black_king";
		}else {
			filePath += "red_king";
		}
		filePath += ".png";

		return filePath;
	}
		
}